package acm;

import java.util.Scanner;

public class a4 {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int n=in.nextInt();
        int[] a = new int[n];
        int t,x=0,xb=0,y=0;
        for (int i=0;i<n;i++){
            a[i]=in.nextInt();
        }
        for (int i=0;i<n;i++){
            int min=10000;
            for (int j=i;j<n;j++){
                if (a[j]<min){
                        min=a[j];
                        xb=j;
                }
            }
            x=a[i];
            a[i]=min;
            a[xb]=x;

        }
        for (int j=0;j<n;j++){
            if (y==0){
                System.out.print(a[j]);
                y++;
            }
            else{
                System.out.print(" "+a[j]);
            }
        }
    }
}
